package leesoft.gocrm.utils;

import com.google.gdata.data.AbstractExtension;
import com.google.gdata.data.extensions.FamilyName;
import com.google.gdata.data.extensions.GivenName;

public class GDataUtils {
	public static String safeGetGivenName(GivenName givenName)
	{
		if(givenName!=null)
		{
			return TextUtils.nullAsEmpty(givenName.getValue());
		}else
		{
			return "";
		}
	}
	public static String safeGetFamilyName(FamilyName familtyName)
	{
		if(familtyName!=null)
		{
			return TextUtils.nullAsEmpty(familtyName.getValue());
		}else
		{
			return "";
		}
	}
}
